package com.ruoyi.machine.base.fitting.service;

import com.ruoyi.machine.base.fitting.domain.Fitting;
import com.ruoyi.machine.base.fitting.domain.FittingCond;

import java.util.List;
/**
 * 配件
 * 业务层接口
 */
public interface IFittingService {
    /**
     * 根据搜索条件所有配件记录
     * @param cond 搜索条件
     * @return
     */
    List<Fitting> selectFittingList(FittingCond cond);

    /**
     * 根据名称和规格查找配件
     * @param fittingName
     * @param fittingSpecification
     * @return
     */
    public Fitting selectFittingByName(String fittingName, String fittingSpecification);

    /**
     * 新增配件记录
     * @param fitting
     * @return
     */
    int insertFitting(Fitting fitting);

    /**
     * 修改配件
     * @param fitting
     * @return
     */
    int updateFitting(Fitting fitting);

    /**
     * 删除配件记录
     * 仅修改删除标志
     * @param fitting
     * @return
     */
    int updateFittingDeleteFlag(Fitting fitting);
}
